package com.ta.stage.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@CrossOrigin(origins = "*",maxAge = 3600)
@Controller
public class MenuController {

    @Value("${http.url}")
    private String url;
    @Value("${http.port}")
    private String port;
    //权限列表:增加查看，删除
    @RequestMapping("/menu/menuListBar")
    public String menuListBar(){
        return "/menu/menuListBar";
    }

    //权限列表:添加
    @RequestMapping("/menu/toAddMenu")
    public String toAddMenu(){
        return "/menu/addMenu";
    }

    //权限列表
    @RequestMapping("/menu/menuList")
    public String menuList(){
        return "/menu/menuList";
    }

    public String address(){
        return "http://"+url+":"+port;
    }
}
